#include "stu_info.h"

int main()
{
    StartMenu();
    int i = 0;
    const char *path = "./studentInfo.txt";
    StuInfo students[LENGTH_];
    while (true)
    {
        if (i >= LENGTH_)
        {
            i = 0;
            SaveInfo(path, students, LENGTH_);
        }
        if (!InputInfo(students[i]))
        {
            break;
        }
        i++;
    }
    if (i)
    {
        SaveInfo(path, students, i);
    }

    End();

    return 0;
}
